package com.scalar.forecast.forecastEntry.actionCommands;

import com.scalar.forecast.commons.Constants;
import com.scalar.forecast.actionCommands.ActionCommand;

/**
 * User: Sujan Kumar
 * Date: Feb 14, 2005
 * Time: 12:48:33 PM
 */
public class ForecastEntrySalesActionCommandFactory implements Constants
{
    public static ActionCommand getActionCommand( String action )
    {
        if ( ACTION_NEW.equalsIgnoreCase( action ) )
        {
            return new ForecastEntrySalesNewCommand();
        }
        if ( ACTION_SAVE.equalsIgnoreCase( action ) )
        {
            return new ForecastEntrySalesSaveCommand();
        }
        if ( ACTION_RELOAD_TABLE_COLUMNS.equalsIgnoreCase( action ) )
        {
            return new ForecastEntrySalesReloadTableColumnsCommand();
        }
        if ( ACTION_SEARCH.equalsIgnoreCase( action ) )
        {
            return new ForecastEntrySalesSearchCommand();
        }
       return null;
   }
}
